package main;

import entity.Employee;
import entity.Pet;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class EmployeeTest {
    public static void main(String[] args) throws BeansException {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        Employee employee = (Employee) context.getBean("employee");
        employee.show();
        Employee employee1 = (Employee) context.getBean("employee1");
        employee1.show();

    }
}
